import request from '@/utils/request'

// 查询门店列表
export function listMd(query) {
  return request({
    url: '/canteen/md/list',
    method: 'get',
    params: query
  })
}

// 查询门店详细
export function getMd(mdId) {
  return request({
    url: '/canteen/md/' + mdId,
    method: 'get'
  })
}

// 新增门店
export function addMd(data) {
  return request({
    url: '/canteen/md',
    method: 'post',
    data: data
  })
}

// 修改门店
export function updateMd(data) {
  return request({
    url: '/canteen/md',
    method: 'put',
    data: data
  })
}

// 删除门店
export function delMd(mdId) {
  return request({
    url: '/canteen/md/' + mdId,
    method: 'delete'
  })
}

// 导出门店
export function exportMd(query) {
  return request({
    url: '/canteen/md/export',
    method: 'get',
    params: query
  })
}